﻿@model ADShop.Models.Category
@using ADShop.Repository


@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>


@*<fieldset>
    <legend>Product</legend>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.ParentIDCategory) : @Html.DisplayFor(model => model.ParentIDCategory)</div>

    <div class="display-label">
        @Html.DisplayNameFor(model => model.NameCategory) : @Html.DisplayFor(model => model.NameCategory)
    </div>


    <div class="display-label">
        @Html.DisplayNameFor(model => model.Details) : @Html.DisplayFor(model => model.Details)
    </div>

        <div class="display-label">
            @Html.DisplayNameFor(model => model.Active) : @Html.DisplayFor(model => model.Active)
        </div>
</fieldset>*@
<div class="panel-body">
    <table class="table table-hover" id="sample-table-1">
        <thead>
            <tr>


                <th>@Html.DisplayNameFor(model => model.IDCategory)</th>
                <th>@Html.DisplayNameFor(model => model.NameCategory)</th>
                <th>@Html.DisplayNameFor(model => model.ParentIDCategory)</th>
                <th>@Html.DisplayNameFor(model => model.Details)</th>
                <th>@Html.DisplayNameFor(model => model.Active)</th>

            </tr>
        </thead>
        <tbody>
            <tr>


                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.IDCategory)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.NameCategory)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.ParentIDCategory)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Details)
                    </div>
                </td>
                <td>
                    <div class="editor-field">
                        @Html.DisplayFor(model => model.Active)
                    </div>
                </td>

            </tr>

        </tbody>
    </table>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.IDCategory }, new { @class = "label label-default" }) |
    @Html.ActionLink("Quay lại Danh Mục", "Index", null, new { @class = "label label-default" })
</p>
